package com.jinyanzi.sso.dao;

import com.jinyanzi.sso.model.User;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends CrudRepository<User, Long> {
    //@Query("select s from user s where s.loginCode = :username")
    User findByUsername(String username);
}
